# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgbase=python-distutils-extra
pkgname=('python3-distutils-extra' 'python2-distutils-extra')
pkgver=2.39
pkgrel=2
pkgdesc="Enhancements to the Python build system"
arch=('any')
license=('GPL')
url="https://launchpad.net/python-distutils-extra"
makedepends=('python3-setuptools' 'python2-setuptools')
source=("https://launchpad.net/${pkgbase}/trunk/${pkgver}/+download/${pkgbase}-${pkgver}.tar.gz"
        ${pkgbase}-${pkgver}.tar.gz.asc::https://launchpad.net/${pkgbase}/trunk/${pkgver}/+download/dist-${pkgbase}-${pkgver}.tar.gz.asc)
sha256sums=('723f24f4d65fc8d99b33a002fbbb3771d4cc9d664c97085bf37f3997ae8063af'
            'SKIP')

package_python3-distutils-extra() {
  depends=('python>=3.3' 'intltool')

  cd "${srcdir}/${pkgbase}-${pkgver}"
  python3 setup.py install --root="${pkgdir}"
}

package_python2-distutils-extra() {
  depends=('python2>=2.7' 'intltool')

  cd "${srcdir}/${pkgbase}-${pkgver}"
  python2 setup.py install --root="${pkgdir}"
}
